﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Phoenix.Common
{
	public class BaseEnum
	{
		#region-- 操作日志---------------
		/// <summary>
		/// 操作编码
		/// </summary>
		public enum OpertionType
		{
			/// <summary>
			/// 新增
			/// </summary>
			Insert,

			/// <summary>
			/// 更新
			/// </summary>
			Update,

			/// <summary>
			/// 删除
			/// </summary>
			Delete,

			/// <summary>
			/// 查询到数据表
			/// </summary>
			QueryTable,

			/// <summary>
			/// 查询到数据列表
			/// </summary>
			QueryList,

			/// <summary>
			/// 得到一条记录
			/// </summary>
			GetData,

			/// <summary>
			/// 得到记录总数
			/// </summary>
			GetRecCount,

			/// <summary>
			/// 执行存储过程
			/// </summary>
			ExcSP,

			/// <summary>
			/// 执行sql语句
			/// </summary>
			ExcSql
		};

		/// <summary>
		/// 记录类别
		/// </summary>
		public enum RecordType
		{
			/// <summary>
			/// 系统记录
			/// </summary>
			System,

			/// <summary>
			/// 应用记录
			/// </summary>
			Application,

			/// <summary>
			/// 安全日志
			/// </summary>
			Security,

			/// <summary>
			/// 权限日志
			/// </summary>
			Permission
		};
		#endregion

		#region-- 图片压缩模式 ----------
		/// <summary>
		/// 图片压缩模式
		/// </summary>
		public enum ImageThumMode
		{
			/// <summary>
			/// 没有
			/// </summary>
			None,

			/// <summary>
			/// 固定高度
			/// </summary>
			FixHeight,

			/// <summary>
			/// 固定宽度
			/// </summary>
			FixWeight,

			/// <summary>
			/// 固定高宽
			/// </summary>
			FixWeightAndHeight,

			/// <summary>
			/// 限制高度
			/// </summary>
			LimitWeight,

			/// <summary>
			/// 限制宽度
			/// </summary>
			LimitHeight,

			/// <summary>
			/// 限制宽度和高度
			/// </summary>
			LimitHeightAndHeight,

			/// <summary>
			/// 填充
			/// </summary>
			Fill
		};
		#endregion
	}
}
